import request from '@/utils/request'

// 查询患者信息列表
export function listExamination(query) {
    return request({
        url: '/hospital/patient/list',
        method: 'get',
        params: query
    })
}
// 查询患者信息列表
export function listExaminationAudit(query) {
    return request({
        url: '/hospital/patient/listAudit',
        method: 'get',
        params: query
    })
}

// 查询患者信息详细
export function getExamination(id) {
    return request({
        url: '/hospital/patient/' + id,
        method: 'get'
    })
}
// 查询患者pdf
export function getPdf(id) {
    return request({
        url: '/hospital/patient/pdf/' + id,
        method: 'get'
    })
}
// 查询患者pdf
export function getPdfFromSqlSever(id) {
    return request({
        url: '/hospital/patient/sqlSeverPdf/' + id,
        method: 'get'
    })
}



// 新增患者信息
export function addExamination(data) {
    return request({
        url: '/hospital/patient',
        method: 'post',
        data: data
    })
}

// 修改患者信息
export function updateExamination(data) {
    return request({
        url: '/hospital/patient',
        method: 'put',
        data: data
    })
}

// 删除患者信息
export function delExamination(id) {
    return request({
        url: '/hospital/patient/' + id,
        method: 'delete'
    })
}
